package newWork.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/login").setViewName("login");
        registry.addViewController("/").setViewName("login");

        registry.addViewController("/staff").setViewName("staff");
        registry.addViewController("/staff_head").setViewName("staff_head");
        registry.addViewController("/admin").setViewName("admin");
        registry.addViewController("/master").setViewName("master");

        registry.addViewController("/staff_head/addStaff").setViewName("staff_head/addStaff");
        registry.addViewController("/staff_head/addClient").setViewName("staff_head/addClient");
        registry.addViewController("/master/projectInfo").setViewName("master/projectInfo");
        registry.addViewController("/master/addProject").setViewName("master/addProject");
        registry.addViewController("/master/option").setViewName("master/option");
        registry.addViewController("/master/addOption").setViewName("master/addOption");
        registry.addViewController("/admin/staffList").setViewName("admin/staffList");
        registry.addViewController("/admin/clientList").setViewName("admin/clientList");
        registry.addViewController("/staff/projectOfStaff").setViewName("staff/projectOfStaff");
        registry.addViewController("/staff/optionOfStaff").setViewName("staff/optionOfStaff");
    }

}
